//
//  ZRBluetooth.h
//  TestFile
//
//  Created by 黄涛 on 2018/7/2.
//  Copyright © 2018年 アポロジャパン. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreBluetooth/CoreBluetooth.h>

@protocol ZRBluetoothDelegate <NSObject>

@optional
/** 获取 扫描到的蓝牙设备 */
- (void)getScanDevicesWithPeripheral:(CBPeripheral *)peripheral;

@end

@interface ZRBluetooth : NSObject


@property (nonatomic , weak) id <ZRBluetoothDelegate> delegate;


/** 扫描设备 */
- (void)scanDevice;

/** 停止扫描 */
- (void)stopScan;

/** 断开连接 */
- (void)disconnect;
    
/** 连接设备 */
- (void)connected:(CBPeripheral *)peripheral;

/** 获取 已连接设备 */
- (NSArray *)getConnectedDevices;

@end
